package vip.zhenzicheng.design_patterns.decorator;

/**
 * 炒饭(具体构件角色)
 *
 * @author zhenzicheng
 * @date 2022-05-26 09:55
 */
public class FriedRice extends FastFood {

  public FriedRice() {
    super(10, "炒饭");
  }

  @Override
  public float cost() {
    return getPrice();
  }
}
